<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
  <script>
      function func(name){
           switch(name){
          case "唐玮":
              console.log("帅哥");break;
          case "sb":
              console.log("不知道");break;

              default:
                  console.log("默认");
           }
           

      }
      func("唐玮");
      func("sb");
      func();
  </script>  
</body>
</html>